package cn.ubeta.b2c.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by denny on 16/9/7.
 */

public class LogisticsInfo extends ApiResp {

    private int orderId;
    private long time;
    private String logisticsName;
    private String logisticsLogoUrl;
    private List<StepInfo> stepInfos;

    public static LogisticsInfo getTestData() {
        LogisticsInfo data = new LogisticsInfo();
        data.orderId = 1;
        data.time = System.currentTimeMillis();
        data.logisticsName = "京东快递";
        data.stepInfos = StepInfo.getTestData();
        return data;
    }

    public int getOrderId() {
        return orderId;
    }

    public long getTime() {
        return time;
    }

    public String getLogisticsName() {
        return logisticsName;
    }

    public String getLogisticsLogoUrl() {
        return logisticsLogoUrl;
    }

    public List<StepInfo> getStepInfos() {
        return stepInfos;
    }

    public static class StepInfo {

        private String message;
        private long time;

        public static List<StepInfo> getTestData() {
            List<StepInfo> data = new ArrayList<>();
            StepInfo info = new StepInfo();
            info.message = "正在发货";
            info.time = System.currentTimeMillis();
            data.add(info);
            return data;
        }

        public String getMessage() {
            return message;
        }

        public long getTime() {
            return time;
        }
    }
}
